atspi: Treat all entries the same for collecting state
authorMatthias Clasen <mclasen@redhat.com>
Tue, 13 Oct 2020 01:32:37 +0000 (21:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 13 Oct 2020 01:43:17 +0000 (21:43 -0400)
We are determining editable state based on the
accessible role (although we could make it platform
state now), so cover all the roles that we use for
entry wrappers.

gtk/a11y/gtkatspicontext.c

index 348c794917a93aa32a41085767583a5f8473462c..27157feda280a689e890a91a1cb6287110039b49 100644 (file)
@@ -125,7 +125,8 @@ collect_states (GtkAtSpiContext    *self,
   set_atspi_state (&states, ATSPI_STATE_VISIBLE);
 
   if (ctx->accessible_role == GTK_ACCESSIBLE_ROLE_TEXT_BOX ||
-      ctx->accessible_role == GTK_ACCESSIBLE_ROLE_SEARCH_BOX)
+      ctx->accessible_role == GTK_ACCESSIBLE_ROLE_SEARCH_BOX ||
+      ctx->accessible_role == GTK_ACCESSIBLE_ROLE_SPIN_BUTTON)
     set_atspi_state (&states, ATSPI_STATE_EDITABLE);
 
   if (gtk_at_context_has_accessible_property (ctx, GTK_ACCESSIBLE_PROPERTY_READ_ONLY))